package requset

type AddOnlineReq struct {
	Title     string `json:"title" form:"title" binding:"required"`
	Desc      string `json:"desc" form:"desc" binding:"required"`
	Price     string `json:"price" form:"price" binding:"required"`
	Inventory string `json:"inventory" form:"inventory" binding:"required"`
}
type UpdateOnlineReq struct {
	Id        uint   `json:"id" form:"id" binding:"required"`
	Desc      string `json:"desc" form:"desc" binding:"required"`           //商品描述
	Price     string `json:"price" form:"price" binding:"required"`         //商品价格
	Inventory string `json:"inventory" form:"inventory" binding:"required"` //商品库存
}
type ListOnlineReq struct {
	Id    uint   `json:"id" form:"id"`
	Title string `json:"title" form:"title"`
}
type PageOnlineReq struct {
	Id       uint   `json:"id" form:"id"`
	Title    string `json:"title" form:"title"`
	Page     uint   `json:"page" form:"page"`
	PageSize uint   `json:"page_size" form:"page_size"`
	OrderBy  string `json:"order_by" form:"order_by"` // e.g. "created_at desc"
}
type ShowOnlineReq struct {
	Id uint `json:"id" form:"id" binding:"required"`
}
